<template>
    <div class="parent">
        <header class="header">
            <x-header class="headerContent" :left-options="{backText: ''}"><span class="title">在线报修</span><a slot="right" class="slotRight" @click="record">完成</a></x-header>
        </header>
       <div class="main">
            <div class="pic">
                <p class="text">
                    <span>提交成功</span>
                </p>
                <p class="picBox">
                    <img src="../../assets/fp.svg" alt="">
                </p>
                <p class="link">
                    <span>详情请查看<a @click="recordBtn" href="javascript:;">报修记录</a></span>
                </p>
            </div>
        </div>
    </div>
</template>
<script>
import { XHeader } from 'vux'
export default {
    name: 'Submissionrepair',
    components: {
        XHeader
    },
    methods: {
        record() {
            console.log('完成')
        },
        recordBtn () {
            this.$router.push({
                path: '/My/Repairrecord'
            })
        }
    }
}
</script>
<style scoped lang="less">
.parent{
    width: 100%;
    height: 100%;
    background: rgba(250, 250, 250, 1);
}
.header{
    width: 100%;
}
.title{
    font-size: 16px;
    font-family:ArialMT;
    color:rgba(255,255,255,1);
    line-height:18px;
    letter-spacing:1px;
}
.headerContent{
    width: 100%;
    background:linear-gradient(135deg,rgba(255,199,38,1) 0%,rgba(249,151,22,1) 100%);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.slotRight{
    color: #fff !important;
    margin-top: .266667rem;
    font-size:12px;
    font-family:ArialMT;
    line-height:14px;
    letter-spacing:1px;
}
.main{
    width: 100%;
    padding: 0 .266667rem;
    margin-top: 3.04rem;
    .pic{
        width: 100%;
        height: 6rem;
        background: #fff;
        border-radius: 0.05rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: .266667rem 0;
        .text{
            font-size: 0.18rem;
            color: rgba(255,199,38,1);
            font-size:24px;
            font-family:Arial-BoldMT;
            font-weight:normal;
            color:rgba(249,152,23,1);
            line-height:28px;
            letter-spacing:2px;
        }
        .picBox{
            width: 3.333333rem;
            height: 3.333333rem;
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            margin-top: .333333rem;
            img{
                display: block;
                width: 100%;
                height: 100%;
            }
        }
        .link{
            color: #ccc;
            margin-top: .333333rem;
            font-size:18px;
            font-family:ArialMT;
            color:rgba(82,82,82,1);
            line-height:21px;
            a{
                // font-size: 0.17rem;
                color: rgba(255,199,38,1);
                cursor: pointor;
            }
        }
    }
}
</style>

